<?php
/**
 * Return block with specified name.
 *
 * @author Anton Danilchenko <anton.danilchenko@gmail.com>
 */
class Templum_Helper_Block implements Templum_Helper_Interface {
	/**
	 * Return result of current helper.
	 *
	 * @link http://my-trac.assembla.com/probus/wiki/EN/ProbusCoreBlock
	 * @param string $sData: processing string
	 * @param array $aParams: 0 - block name
	 */
	public function handle(&$sData, $aParams=array()) {
		// only for use with Probus framework
		if (class_exists('Probus') AND is_string($sData) AND ''!=$sData) {
			// processing data
			$sData = Probus::Block($sData)->get();
		}
	}
}